item replace block 59 -9 102 container.18 with pink_dye{display:{Name:'{"text":"Previous Page","color":"#13C288","bold":true,"italic":false}'},CustomModelData:24,page2:1b,pageui:1b} 1
item replace block 59 -9 102 container.19 with pink_dye{display:{Name:'{"text":"First Page","color":"#13C288","bold":true,"italic":false}'},CustomModelData:26,page4:1b,pageui:1b} 1
item replace block 59 -9 102 container.26 with pink_dye{display:{Name:'{"text":"Next Page","color":"#13C288","bold":true,"italic":false}'},CustomModelData:23,page1:1b,pageui:1b} 1
item replace block 59 -9 102 container.25 with pink_dye{display:{Name:'{"text":"Last Page","color":"#13C288","bold":true,"italic":false}'},CustomModelData:25,page3:1b,pageui:1b} 1
item replace block 59 -9 102 container.22 with pink_dye{display:{Name:'{"text":"Information","color":"white","bold":true,"italic":false}',Lore:['{"text":" "}','{"text":"Shift + Left-Click on an arrow to","color":"white","bold":false,"italic":false}','{"text":"switch pages within the Spell Menu.","color":"white","bold":false,"italic":false}','{"text":" ","bold":false,"italic":false}','{"text":"To add a spell to your inventory, left","color":"white","bold":false,"italic":false}','{"text":"click and press shift at the same time.","color":"white","bold":false,"italic":false}','{"text":" ","bold":false,"italic":false}','{"text":"If you delete a spell in the Spell Menu by","color":"white","bold":false,"italic":false}','{"text":"accident, close and reopen the Spell Menu","color":"white","bold":false,"italic":false}','{"text":"to reset the pages.","color":"white","bold":false,"italic":false}','{"text":" ","bold":false,"italic":false}','{"text":"Casting a spell in a normal run for the first","color":"blue","bold":false,"italic":false}','{"text":"time will unlock it in the Spell Menu.","color":"blue","bold":false,"italic":false}']},CustomModelData:7,invtrash:1b} 1

item replace block 59 -9 102 container.20 with air 1
item replace block 59 -9 102 container.21 with air 1
item replace block 59 -9 102 container.23 with air 1
item replace block 59 -9 102 container.24 with air 1


execute at @a[scores={spell19_key=1..}] run item replace block 59 -9 102 container.0 with 
execute at @a[scores={spell20_key=1..}] run item replace block 59 -9 102 container.1 with 
execute at @a[scores={spell21_key=1..}] run item replace block 59 -9 102 container.2 with 
execute at @a[scores={spell22_key=1..}] run item replace block 59 -9 102 container.3 with 
execute at @a[scores={spell23_key=1..}] run item replace block 59 -9 102 container.4 with 
execute at @a[scores={spell24_key=1..}] run item replace block 59 -9 102 container.5 with 
execute at @a[scores={spell25_key=1..}] run item replace block 59 -9 102 container.6 with 
execute at @a[scores={spell26_key=1..}] run item replace block 59 -9 102 container.7 with 
execute at @a[scores={spell27_key=1..}] run item replace block 59 -9 102 container.8 with 
execute at @a[scores={spell28_key=1..}] run item replace block 59 -9 102 container.9 with 
execute at @a[scores={spell29_key=1..}] run item replace block 59 -9 102 container.10 with 
execute at @a[scores={spell30_key=1..}] run item replace block 59 -9 102 container.11 with 
execute at @a[scores={spell31_key=1..}] run item replace block 59 -9 102 container.12 with 
execute at @a[scores={spell32_key=1..}] run item replace block 59 -9 102 container.13 with 
execute at @a[scores={spell33_key=1..}] run item replace block 59 -9 102 container.14 with 
execute at @a[scores={spell34_key=1..}] run item replace block 59 -9 102 container.15 with 
execute at @a[scores={spell35_key=1..}] run item replace block 59 -9 102 container.16 with 
execute at @a[scores={spell36_key=1..}] run item replace block 59 -9 102 container.17 with 


execute at @a[scores={spell19_key=0}] run item replace block 59 -9 102 container.0 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell20_key=0}] run item replace block 59 -9 102 container.1 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell21_key=0}] run item replace block 59 -9 102 container.2 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell22_key=0}] run item replace block 59 -9 102 container.3 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell23_key=0}] run item replace block 59 -9 102 container.4 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell24_key=0}] run item replace block 59 -9 102 container.5 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell25_key=0}] run item replace block 59 -9 102 container.6 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell26_key=0}] run item replace block 59 -9 102 container.7 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell27_key=0}] run item replace block 59 -9 102 container.8 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell28_key=0}] run item replace block 59 -9 102 container.9 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell29_key=0}] run item replace block 59 -9 102 container.10 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell30_key=0}] run item replace block 59 -9 102 container.11 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell31_key=0}] run item replace block 59 -9 102 container.12 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell32_key=0}] run item replace block 59 -9 102 container.13 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell33_key=0}] run item replace block 59 -9 102 container.14 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell34_key=0}] run item replace block 59 -9 102 container.15 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell35_key=0}] run item replace block 59 -9 102 container.16 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1
execute at @a[scores={spell36_key=0}] run item replace block 59 -9 102 container.17 with black_dye{display:{Name:'{"text":"???","color":"gray","bold":true,"italic":false}'},CustomModelData:1,pageui:1b,blankspell:1b,invtrash:1b} 1










